<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
  "http://www.w3.org/TR/html4/strict.dtd">

<html>
  <head>
    <title><?php echo $config['name'].$doctitle ?></title>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <link rel="stylesheet" type="text/css" href="<?php echo pathToSkin() ?>css/stylesheet.css" media="screen" />
    <link rel="stylesheet" type="text/css" href="<?php echo pathToSkin() ?>css/niftycorners.css" media="screen" />
    <?php include('extend/opensearch/embed.php') ?>
    <?php include('extend/rss/embed.php') ?>
    <script type="text/javascript" src="<?php echo pathToSkin() ?>js/niftycube.js"></script>
    <script type="text/javascript">
    window.onload=function(){
    Nifty("div#menu a","medium transparent top");
    Nifty("div#content,div#side","same-height");
    Nifty("div.comments div");
    Nifty("div#footer");
    Nifty("div#container","big bottom tl");
    }
    </script>
  </head>
  <body>
    <div id="header">
      <h1>
        <span id="mainheader">&raquo; <a href="<?php echo $config['url'] ?>"><?php echo $config['name'] ?></a> </span>
        <span id="subheader"><?php echo $config['tagline'] ?></span>
      </h1>
      <div id="menu">
        <ul id="nav">
          <li <?php if(!$_GET['show']==""){?>class="activelink"<?php } ?>>
            <?php echo getLink('show',$title,'view') ?>
          </li>
          <li <?php if(!$_GET['edit']==""){?>class="activelink"<?php } ?>>
            <?php echo getLink('edit',$title,'edit') ?>
          </li>
          <li <?php if(!$_GET['discuss']==""){?>class="activelink"<?php } ?>>
            <?php echo getLink('discuss',$title,'discuss') ?>
          </li>
        </ul>
      </div>
    </div>
    <div id="container">
      <div id="content">
        <?php include($content) ?>
      </div>
      <div id="side">
        <?php include('sidebar.php') ?>
      </div>
      <div id="footer">
        <p>
          proudly powered by <a href="http://purl.oclc.org/NET/thinking-chair/aboutpetewiki">pete_wiki</a>
        </p>
      </div>
    </div>
  </body>
</html>